﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_camera
{
    [Key]
    public int dc_autoid { get; set; }

    [StringLength(900)]
    public string dc_code { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? dc_mod_time { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? dc_add_time { get; set; }

    [StringLength(255)]
    public string dc_guid { get; set; }

    [StringLength(50)]
    public string dc_group { get; set; }

    /// <summary>
    /// 使用人
    /// </summary>
    [StringLength(255)]
    public string dc_user_name { get; set; }

    [StringLength(50)]
    public string dc_machine_name { get; set; }

    /// <summary>
    /// 绑定主机
    /// </summary>
    [StringLength(255)]
    public string dc_gw_guid { get; set; }

    /// <summary>
    /// 设置多久心跳一次 秒
    /// </summary>
    public long? dc_live_set_interval_time { get; set; }

    /// <summary>
    /// 0未检测查，1正常，2异常
    /// </summary>
    public int? dc_live_state { get; set; }

    /// <summary>
    /// 心跳时间
    /// </summary>
    [Column(TypeName = "datetime")]
    public DateTime? dc_live_state_set_time { get; set; }

    [StringLength(50)]
    public string dc_position { get; set; }

    [StringLength(50)]
    public string dc_live_sate_remark { get; set; }

    public int? dc_order { get; set; }

    [StringLength(50)]
    public string dc_pixel { get; set; }

    [StringLength(255)]
    public string dc_d_guid { get; set; }

    [StringLength(50)]
    public string dc_agreement_type { get; set; }
}
